package workai.fcx.com.message_module.ui;

import android.os.Bundle;

import com.hxh.component.basicore.component.mvp.persenter.IPresenter;
import com.hxh.component.basicore.component.mvp.view.BaseActivity;
import com.hxh.component.business.utils.Constant;

import me.yokeyword.fragmentation.anim.DefaultHorizontalAnimator;
import me.yokeyword.fragmentation.anim.FragmentAnimator;
import workai.fcx.com.message_module.R;
import workai.fcx.com.message_module.ui.main.MessageHomeFragment;


public class MessageMainActivity extends BaseActivity {


    @Override
    public int getLayoutId() {
        return R.layout.activity_main_message;
    }

    @Override
    public void initData(Bundle saveInstanceState) {
        String tag = getExtra_String(Constant.RouterTag.SHOWTAG);
        showFragmentForTag(tag);
    }

    private void showFragmentForTag(String tag) {
        switch (tag) {
            case Constant.RouterTag.CONSULT_DETAIL:
                loadRootFragment(R.id.frame_main, MessageHomeFragment.newInstance());
                break;
        }
    }

    @Override
    public FragmentAnimator onCreateFragmentAnimator() {
        return new DefaultHorizontalAnimator();
    }


    @Override
    public IPresenter newP() {
        return null;
    }
}
